import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Index from '@/pages/index/Index'
import Login from '@/pages/login/Login'
import Sign from '@/pages/sign/Sign'
import UserAccount from '@/pages/user/UserAccount'
import UserSafe from '@/pages/user/UserSafe'
import UserSafePassword from '@/pages/user/UserSafePassword'
import UserSafeEmail from '@/pages/user/UserSafeEmail'
import UserAccountHead from '@/pages/user/UserAccountHead'
import AddressList from '@/pages/user/AddressList'
import AdminBannerList from '@/pages/user/AdminBannerList'
import AdminCategoryList from '@/pages/user/AdminCategoryList'
import AdminBrandList from '@/pages/user/AdminBrandList'
import AdminBrandDetails from '@/pages/user/AdminBrandDetails'
import CommodityDetails from '@/pages/user/CommodityDetails'
import AdminCommodityList from '@/pages/user/AdminCommodityList'
import SearchGood from '@/pages/searchGood/SearchGood'
import Cart from '@/pages/cart/Cart'
import SearchDetail from '@/pages/searchDetail/SearchDetail'
import ConfirmOrder from '@/pages/confirmOrder/ConfirmOrder'
import Pay from '@/pages/pay/Pay'
import PayOk from '@/pages/pay/PayOk'
import OrderList from '@/pages/user/OrderList'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/index',
      name: 'Index',
      component: Index
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/sign',
      name: 'Sign',
      component: Sign
    },
    {
      path: '/userAccount',
      name: 'userAccount',
      component: UserAccount
    },
    {
      path: '/userSafe',
      name: 'userSafe',
      component: UserSafe
    },
    {
      path: '/userSafePassword',
      name: 'userSafePassword',
      component: UserSafePassword
    },
    {
      path: '/userSafeEmail',
      name: 'userSafeEmail',
      component: UserSafeEmail
    },
    {
      path: '/userAccountHead',
      name: 'userAccountHead',
      component: UserAccountHead
    },
    {
      path: '/addressList',
      name: 'addressList',
      component: AddressList
    },
    {
      path: '/adminBannerList',
      name: 'adminBannerList',
      component: AdminBannerList
    },
    {
      path: '/adminCategoryList',
      name: 'adminCategoryList',
      component: AdminCategoryList
    },
    {
      path: '/adminBrandList',
      name: 'adminBrandList',
      component: AdminBrandList
    },
    {
      path: '/adminBrandDetails',
      name: 'adminBrandDetails',
      component: AdminBrandDetails
    },
    {
      path: '/commodityDetails',
      name: 'commodityDetails',
      component: CommodityDetails
    },
    {
      path: '/adminCommodityList',
      name: 'adminCommodityList',
      component: AdminCommodityList
    },
    {
      path: '/searchGood',
      name: 'searchGood',
      component: SearchGood
    },
    {
      path: '/cart',
      name: 'cart',
      component: Cart
    },
    {
      path: '/searchDetail',
      name: 'SearchDetail',
      component: SearchDetail
    },
    {
      path: '/confirmOrder',
      name: 'ConfirmOrder',
      component: ConfirmOrder
    },
    {
      path: '/pay',
      name: 'Pay',
      component: Pay
    },
    {
      path: '/payOk',
      name: 'PayOk',
      component: PayOk
    },
    {
      path: '/orderList',
      name: OrderList,
      component: OrderList
    }
  ]
})
